package com.lp.exception;


import com.lp.config.AppReturn;

public class ApplicationException extends RuntimeException {

    private AppReturn error;

    public ApplicationException(AppReturn error) {
        super(error.getMsg());
        this.error = error;
    }

    public AppReturn getError() {
        return error;
    }
}
